package org.eiahe.hr.salary.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 调薪申请表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_salary_adjustment_application")
public class SalaryAdjustmentApplication extends BaseEntity {

    /**
     * 调薪申请ID
     */
    @TableId(value = "application_id", type = IdType.AUTO)
    private Long applicationId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    private String employeeNo;

    /**
     * 调薪原因
     */
    private String adjustmentReason;

    /**
     * 原薪资
     */
    private BigDecimal originalSalary;

    /**
     * 新薪资
     */
    private BigDecimal newSalary;

    /**
     * 生效时间
     */
    private Date effectiveTime;

    /**
     * 审批状态(0待审批 1审批通过 2审批拒绝)
     */
    private String approvalStatus;

    /**
     * 审批人
     */
    private String approver;

    /**
     * 审批时间
     */
    private Date approvalTime;

    /**
     * 审批意见
     */
    private String approvalOpinion;

    /**
     * 调薪依据(如绩效评分表ID)
     */
    private String adjustmentBasis;

    /**
     * 删除标志(0存在 1删除)
     */
    @TableLogic
    private String delFlag;

}